package com.example.subject10mvn.responsitory;


import com.example.subject10mvn.entity.Subject;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import org.springframework.data.domain.Pageable;


public interface SubjectResponsitory extends JpaRepository<Subject,Integer>, JpaSpecificationExecutor<Subject> {
    Page<Subject> findBySubjectTypeId(Pageable pageable, Integer subjectTypeId);
}
